package cn.chair.entity;

import life.innovation.annotation.orm.Entity;
import life.innovation.annotation.orm.Id;
import life.innovation.model.BaseModel;

import java.io.Serializable;
import java.util.Date;

@Entity
public class Role extends BaseModel implements Serializable {

    @Id
    private int id;
    private int orgId;
    private int parentRoleId;
    private String name;
    private long permission;
    private Date createdAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrgId() {
        return orgId;
    }

    public void setOrgId(int orgId) {
        this.orgId = orgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getPermission() {
        return permission;
    }

    public void setPermission(long permission) {
        this.permission = permission;
    }

    public int getParentRoleId() {
        return parentRoleId;
    }

    public void setParentRoleId(int parentRoleId) {
        this.parentRoleId = parentRoleId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}
